ShortPixel\Model\Image\MediaLibraryModel D

Total Complexity 493
Dependencies 12
Dependents 3
Total lines 2,696
Lines of code 1,918
Logical lines of code 1,160
Comment lines 297
Methods 57
Properties 11

Methods 57

Method Rating Maintainability Complexity Lines of code
checkLegacy()
D
19
56 196
handleOptimized()
D
27
32 150
addUnlisted()
C
30 29 119
restore()
C
29
25 144
loadMeta()
C
34 23 88
convertPNG()
B
33 19 100
getDBMeta()
B
34 19 89
getOptimizeFileType()
B
39 18 68
isProcessable()
B
42 19 52
createRecord()
B
36 16 84
migrate()
B
43 18 47
loadThumbnailsFromWP()
B
43 17 49
checkLegacyFileTypeFileName()
A
44 12 49
restorePNG2JPG()
A
40 11 63
getOptimizeUrls()
A
47 11 38
createSave()
A
48 10 35
addRetinas()
A
52 10 27
legacyConvertStatus()
A
52 10 23
isProcessableSize()
A
54 10 19
getWebps()
A
51 9 28
getAvifs()
A
51 9 28
getWPMLDuplicates()
A
47 8 37
isSizeExcluded()
A
53 8 21
saveDBMeta()
S
53 7 24
isRestorable()
S
55 7 21
getImprovements()
S
48 6 35
onDelete()
S
55 7 20
getLastErrorMessage()
S
60 6 13
count()
S
57 5 18
isOptimizePrevented()
S
57 4 18
removeLegacy()
S
57 4 18
legacyConvertType()
S
58 4 18
getOptimizePaths()
S
62 4 12
setOriginalFile()
S
62 4 11
hasDBRecord()
S
60 3 13
__construct()
S
64 3 10
createDuplicateRecord()
S
60 2 13
cleanupDatabase()
S
60 2 12
wpCreateImageSizes()
S
62 2 11
getWPMetaData()
S
73 2 5
getRetinas()
S
71 2 7
getThumbNail()
S
73 2 5
hasOriginal()
S
72 2 6
getOriginalFile()
S
72 2 6
removeLegacyShortPixel()
S
68 2 8
getURL()
S
76 1 4
isScaled()
S
82 1 3
getThumbnailModel()
S
75 1 4
saveMeta()
S
74 1 5
deleteMeta()
S
66 1 8
dropFromQueue()
S
67 1 8
preventNextTry()
S
74 1 4
resetPrevent()
S
80 1 3
returnTrue()
S
82 1 3
loadLooseItems()
S
78 1 4
generateThumbnails()
S
75 1 4
__debugInfo()
S
64 1 10